<?php



/**
 * Discussion
 */
class Discussion
{
    /**
     * @var integer $id
     */
    private $id;

    /**
     * @var string $title
     */
    private $title;

    /**
     * @var datetime $created_at
     */
    private $created_at;

    /**
     * @var datetime $updated_at
     */
    private $updated_at;

    /**
     * @var DiscussionMessage
     */
    private $messages;

    /**
     * @var User
     */
    private $creator;

    /**
     * @var Theme
     */
    private $themes;

    /**
     * @var User
     */
    private $readers;

    /**
     * @var User
     */
    private $participants;

    public function __construct()
    {
        $this->messages = new \Doctrine\Common\Collections\ArrayCollection();
    $this->themes = new \Doctrine\Common\Collections\ArrayCollection();
    $this->readers = new \Doctrine\Common\Collections\ArrayCollection();
    $this->participants = new \Doctrine\Common\Collections\ArrayCollection();
    }
    
    /**
     * Get id
     *
     * @return integer $id
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set title
     *
     * @param string $title
     */
    public function setTitle($title)
    {
        $this->title = $title;
    }

    /**
     * Get title
     *
     * @return string $title
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Set created_at
     *
     * @param datetime $createdAt
     */
    public function setCreatedAt($createdAt)
    {
        $this->created_at = $createdAt;
    }

    /**
     * Get created_at
     *
     * @return datetime $createdAt
     */
    public function getCreatedAt()
    {
        return $this->created_at;
    }

    /**
     * Set updated_at
     *
     * @param datetime $updatedAt
     */
    public function setUpdatedAt($updatedAt)
    {
        $this->updated_at = $updatedAt;
    }

    /**
     * Get updated_at
     *
     * @return datetime $updatedAt
     */
    public function getUpdatedAt()
    {
        return $this->updated_at;
    }

    /**
     * Add messages
     *
     * @param DiscussionMessage $messages
     */
    public function addMessages(\DiscussionMessage $messages)
    {
        $this->messages[] = $messages;
    }

    /**
     * Get messages
     *
     * @return Doctrine\Common\Collections\Collection $messages
     */
    public function getMessages()
    {
        return $this->messages;
    }

    /**
     * Set creator
     *
     * @param User $creator
     */
    public function setCreator(\User $creator)
    {
        $this->creator = $creator;
    }

    /**
     * Get creator
     *
     * @return User $creator
     */
    public function getCreator()
    {
        return $this->creator;
    }

    /**
     * Add themes
     *
     * @param Theme $themes
     */
    public function addThemes(\Theme $themes)
    {
        $this->themes[] = $themes;
    }

    /**
     * Get themes
     *
     * @return Doctrine\Common\Collections\Collection $themes
     */
    public function getThemes()
    {
        return $this->themes;
    }

    /**
     * Add readers
     *
     * @param User $readers
     */
    public function addReaders(\User $readers)
    {
        $this->readers[] = $readers;
    }

    /**
     * Get readers
     *
     * @return Doctrine\Common\Collections\Collection $readers
     */
    public function getReaders()
    {
        return $this->readers;
    }

    /**
     * Add participants
     *
     * @param User $participants
     */
    public function addParticipants(\User $participants)
    {
        $this->participants[] = $participants;
    }

    /**
     * Get participants
     *
     * @return Doctrine\Common\Collections\Collection $participants
     */
    public function getParticipants()
    {
        return $this->participants;
    }
}